package com.ternnetwork.core.accesscontroll.service;

import org.springframework.data.domain.Pageable;
import com.ternnetwork.commons.model.http.BaseResponse;
import com.ternnetwork.core.accesscontroll.dto.RoleQueryDto;
import com.ternnetwork.core.accesscontroll.entity.Role;

public interface RoleService {
	
	 BaseResponse getOne(Long id);
	
     BaseResponse add(Role t);
    
     BaseResponse update(Role t);
	
     BaseResponse findByPage(Pageable pageable,RoleQueryDto dto);
    
  	 BaseResponse findAll(RoleQueryDto dto);
    
     BaseResponse deleteById(Long id);
	
  	 BaseResponse findAllByCategory(String category);
	
     BaseResponse findByCode(String code);
    
     BaseResponse findAll();

}
